package com.example.service;

import com.example.entity.Calender;
import com.example.mapper.CalenderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CalenderService {
    @Autowired
    private CalenderMapper calenderMapper;

    public List<Calender> findAll() {
        return calenderMapper.selectAll();
    }

    public void add(Calender calender) {
        calenderMapper.add(calender);
    }
}
